// 长方形
let rectangle = new joint.shapes.standard.Rectangle();
rectangle.resize(80, 35);
rectangle.attr('root/tabindex', 1);
rectangle.attr('root/title', 'joint.shapes.standard.Rectangle');
rectangle.attr('root/hierarchy', 0);//节点
rectangle.attr('root/incident', '');//资源类型  video/Audio/text/image/none
rectangle.attr('root/incidentData', '');//资源数据
rectangle.attr('root/dialogColor', '');//弹出框背景颜色设置
rectangle.attr('root/dialogWidth', 800);//弹出框宽设置
rectangle.attr('root/dialogHeight', 600);//弹出框高设置
rectangle.attr('body/fill', '#ffffff');//背景颜色
rectangle.attr('body/fillOpacity', 1);//透明度
rectangle.attr('body/stroke', '#000000');//边框颜色
rectangle.attr('body/strokeWidth', 2);//边框大小
rectangle.attr('body/strokeDasharray', '1,0');//边框样式
rectangle.attr('body/rx', 10);//圆角
rectangle.attr('label/text', '');//文字内容
rectangle.attr('label/fontSize', 14);//文字大小
rectangle.attr('label/fill', '#000');//文字颜色
rectangle.attr('label/style/opacity', 1);//文字透明度
rectangle.attr('label/style/letterSpacing', 1);//文字字间距
rectangle.attr('label/kerning', 50);//文字行间距
rectangle.attr('label/fontWeight', 'Normal');//文字粗细
rectangle.attr('label/fontStyle', 'Normal');//文字倾斜
rectangle.attr('label/fontFamily', 'SimSun');//文字字体
rectangle.attr('label/textAnchor', 'middle');//文字左中右对齐start | middle | end | inherit
rectangle.attr('label/textVerticalAnchor', 'middle');//文字左中右对齐start | middle | end | inherit
// rectangle.attr('rect/filter', { name: 'dropShadow', args: { dx: 0, dy: 0, blur: 0 } });//阴影

// 腰圆形
let RoundTheWaist = new joint.shapes.standard.Rectangle();
RoundTheWaist.resize(80, 35);
RoundTheWaist.attr('root/tabindex', 2);
RoundTheWaist.attr('root/title', 'joint.shapes.standard.Rectangle');
RoundTheWaist.attr('root/hierarchy', 0);//节点
RoundTheWaist.attr('root/incident', '');//资源类型  video/Audio/text/image/none
RoundTheWaist.attr('root/incidentData', '');//资源数据
RoundTheWaist.attr('root/dialogColor', '');//弹出框背景颜色设置
RoundTheWaist.attr('root/dialogWidth', 800);//弹出框宽设置
RoundTheWaist.attr('root/dialogHeight', 600);//弹出框高设置
RoundTheWaist.attr('root/shape', 'yyx');//弹出框高设置
RoundTheWaist.attr('body/fill', '#ffffff');//背景颜色
RoundTheWaist.attr('body/fillOpacity', 1);//透明度
RoundTheWaist.attr('body/stroke', '#000000');//边框颜色
RoundTheWaist.attr('body/strokeWidth', 2);//边框大小
RoundTheWaist.attr('body/strokeDasharray', '1,0');//边框样式
RoundTheWaist.attr('body/rx', 25);//圆角
RoundTheWaist.attr('label/text', '');//文字内容
RoundTheWaist.attr('label/fontSize', 14);//文字大小
RoundTheWaist.attr('label/fill', '#000');//文字颜色
RoundTheWaist.attr('label/style/opacity', 1);//文字透明度
RoundTheWaist.attr('label/style/letterSpacing', 1);//文字字间距
RoundTheWaist.attr('label/kerning', 50);//文字行间距
RoundTheWaist.attr('label/fontWeight', 'Normal');//文字粗细
RoundTheWaist.attr('label/fontStyle', 'Normal');//文字倾斜
RoundTheWaist.attr('label/fontFamily', 'SimSun');//文字字体
RoundTheWaist.attr('label/textAnchor', 'middle');//文字左中右对齐start | middle | end | inherit
RoundTheWaist.attr('label/textVerticalAnchor', 'middle');//文字左中右对齐start | middle | end | inherit
// RoundTheWaist.attr('rect/filter', { name: 'dropShadow', args: { dx: 0, dy: 0, blur: 0 } });//阴影

// 菱形
let polygon = new joint.shapes.standard.Polygon();
polygon.resize(80, 35);
polygon.attr('root/tabindex', 3);
polygon.attr('root/title', 'joint.shapes.standard.Polygon');
polygon.attr('body/refPoints', '0,30 75,0 150,30 75,60');
polygon.attr('root/hierarchy', 0);//节点
polygon.attr('root/incident', '');//资源类型  video/Audio/text/image/none
polygon.attr('root/incidentData', '');//资源数据  video填写地址/Audio填写地址/text填写文字/none
polygon.attr('root/dialogColor', '');//弹出框背景颜色设置
polygon.attr('root/dialogWidth', 800);//弹出框宽设置
polygon.attr('root/dialogHeight', 600);//弹出框高设置
polygon.attr('body/fill', '#ffffff');//背景颜色
polygon.attr('body/fillOpacity', 1);//透明度
polygon.attr('body/stroke', '#000000');//边框颜色
polygon.attr('body/strokeWidth', 2);//边框大小
polygon.attr('body/strokeDasharray', '1,0');//边框样式
polygon.attr('label/text', '');//文字内容
polygon.attr('label/fontSize', 14);//文字大小
polygon.attr('label/fill', '#000');//文字颜色
polygon.attr('label/fontWeight', 'Normal');//文字粗细
polygon.attr('label/fontStyle', 'Normal');//文字倾斜
polygon.attr('label/fontFamily', 'SimSun');//文字字体
polygon.attr('label/style/opacity', 1);//文字透明度
polygon.attr('label/style/letterSpacing', 1);//文字字间距
polygon.attr('label/textAnchor', 'middle');//文字左中右对齐start | middle | end | inherit
polygon.attr('label/textVerticalAnchor', 'middle');//文字左中右对齐start | middle | end | inherit
// polygon.attr('rect/filter', { name: 'dropShadow', args: { dx: 0, dy: 0, blur: 0 } });//阴影

// 多棱角矩形
let multilateralRectangle = new joint.shapes.standard.Polygon();
RoundTheWaist.resize(80, 35);
multilateralRectangle.attr('root/tabindex', 4);
multilateralRectangle.attr('root/title', 'joint.shapes.standard.Polygon');
multilateralRectangle.attr('body/refPoints', '0,10 30,0 120,0 150,10 150,25 120,35 30,35 0,25');
multilateralRectangle.attr('root/hierarchy', 0);//节点
multilateralRectangle.attr('root/incident', '');//资源类型  video/Audio/text/image/none
multilateralRectangle.attr('root/incidentData', '');//资源数据  video填写地址/Audio填写地址/text填写文字/none
multilateralRectangle.attr('root/dialogColor', '');//弹出框背景颜色设置
multilateralRectangle.attr('root/dialogWidth', 800);//弹出框宽设置
multilateralRectangle.attr('root/dialogHeight', 600);//弹出框高设置
multilateralRectangle.attr('body/fill', '#ffffff');//背景颜色
multilateralRectangle.attr('body/fillOpacity', 1);//透明度
multilateralRectangle.attr('body/stroke', '#000000');//边框颜色
multilateralRectangle.attr('body/strokeWidth', 2);//边框大小
multilateralRectangle.attr('body/strokeDasharray', '1,0');//边框样式
multilateralRectangle.attr('label/text', '');//文字内容
multilateralRectangle.attr('label/fontSize', 14);//文字大小
multilateralRectangle.attr('label/fill', '#000');//文字颜色
multilateralRectangle.attr('label/fontWeight', 'Normal');//文字粗细
multilateralRectangle.attr('label/fontStyle', 'Normal');//文字倾斜
multilateralRectangle.attr('label/fontFamily', 'SimSun');//文字字体
multilateralRectangle.attr('label/style/opacity', 1);//文字透明度
multilateralRectangle.attr('label/style/letterSpacing', 1);//文字字间距
multilateralRectangle.attr('label/textAnchor', 'middle');//文字左中右对齐start | middle | end | inherit
multilateralRectangle.attr('label/textVerticalAnchor', 'middle');//文字左中右对齐start | middle | end | inherit
//multilateralRectangle.attr('rect/filter', { name: 'dropShadow', args: { dx: 0, dy: 0, blur: 0 } });//阴影


// 菱形yes
let polygonYes = new joint.shapes.standard.Polygon();
polygonYes.resize(80, 35);
polygonYes.attr('root/tabindex', 3);
polygonYes.attr('root/title', 'joint.shapes.standard.Polygon');
polygonYes.attr('body/refPoints', '0,30 75,0 150,30 75,60');
polygonYes.attr('root/hierarchy', 0);//节点
polygonYes.attr('root/incident', '');//资源类型  video/Audio/text/image/none
polygonYes.attr('root/incidentData', '');//资源数据  video填写地址/Audio填写地址/text填写文字/none
polygonYes.attr('root/dialogColor', '');//弹出框背景颜色设置
polygonYes.attr('root/dialogWidth', 800);//弹出框宽设置
polygonYes.attr('root/dialogHeight', 600);//弹出框高设置
polygonYes.attr('body/fill', '#ffffff');//背景颜色
polygonYes.attr('body/fillOpacity', 1);//透明度
polygonYes.attr('body/stroke', '#000000');//边框颜色
polygonYes.attr('body/strokeWidth', 2);//边框大小
polygonYes.attr('body/strokeDasharray', '1,0');//边框样式
polygonYes.attr('label/text', 'yes');//文字内容
polygonYes.attr('label/fontSize', 14);//文字大小
polygonYes.attr('label/fill', '#000');//文字颜色
polygonYes.attr('label/fontWeight', 'Normal');//文字粗细
polygonYes.attr('label/fontStyle', 'Normal');//文字倾斜
polygonYes.attr('label/fontFamily', 'SimSun');//文字字体
polygonYes.attr('label/style/opacity', 1);//文字透明度
polygonYes.attr('label/style/letterSpacing', 1);//文字字间距
polygonYes.attr('label/textAnchor', 'middle');//文字左中右对齐start | middle | end | inherit
polygonYes.attr('label/textVerticalAnchor', 'middle');//文字左中右对齐start | middle | end | inherit
// polygonYes.attr('rect/filter', { name: 'dropShadow', args: { dx: 0, dy: 0, blur: 0 } });//阴影


// 自定义-手动操作
var flutter = new joint.shapes.standard.Path();
flutter.resize(80, 35);
flutter.attr('root/title', 'joint.shapes.standard.Path');
flutter.attr('body/refD', 'M428.3525215435157,341.75832670822217 L450.47751664314393,238.75835411623925 L524.2275042682916,238.75835411623925 L546.352491448457,341.75832670822217 L428.3525215435157,341.75832670822217 z');
flutter.attr('root/hierarchy', 0);//节点
flutter.attr('root/incident', '');//资源类型  video/Audio/text/image/none
flutter.attr('root/incidentData', '');//资源数据  video填写地址/Audio填写地址/text填写文字/none
flutter.attr('root/dialogColor', '');//弹出框背景颜色设置
flutter.attr('root/dialogWidth', 800);//弹出框宽设置
flutter.attr('root/dialogHeight', 600);//弹出框高设置
flutter.attr('body/fill', '#fff');//背景颜色
flutter.attr('body/fillOpacity', 1);//透明度
flutter.attr('body/stroke', '#000');//边框颜色
flutter.attr('body/strokeWidth', 2);//边框大小
flutter.attr('body/strokeDasharray', '1,0');//边框样式
flutter.attr('label/text', '');//文字内容
flutter.attr('label/fontSize', 14);//文字大小
flutter.attr('label/fill', '#000');//文字颜色
flutter.attr('label/fontWeight', 'Normal');//文字粗细
flutter.attr('label/fontStyle', 'Normal');//文字倾斜
flutter.attr('label/fontFamily', 'SimSun');//文字字体
flutter.attr('label/style/opacity', 1);//文字透明度
flutter.attr('label/style/letterSpacing', 1);//文字字间距
flutter.attr('label/textAnchor', 'middle');//文字左中右对齐start | middle | end | inherit
flutter.attr('label/textVerticalAnchor', 'middle');//文字左中右对齐start | middle | end | inherit
// flutter.attr('rect/filter', { name: 'dropShadow', args: { dx: 0, dy: 0, blur: 0 } });//阴影

// 标题
let text = new joint.shapes.standard.Rectangle();
text.resize(80, 35);
text.attr('root/tabindex', 1);
text.attr('root/title', 'joint.shapes.standard.Rectangle');
text.attr('root/hierarchy', 0);//节点
text.attr('root/incident', '');//资源类型  video/Audio/text/image/none
text.attr('root/incidentData', '');//资源数据
text.attr('root/dialogColor', '');//弹出框背景颜色设置
text.attr('root/dialogWidth', 800);//弹出框宽设置
text.attr('root/dialogHeight', 600);//弹出框高设置
text.attr('body/fill', 'rgba(255,255,255,0)');//背景颜色
text.attr('body/fillOpacity', 1);//透明度
text.attr('body/stroke', '#fff');//边框颜色
text.attr('body/strokeWidth', 0);//边框大小
text.attr('body/strokeDasharray', '1,0');//边框样式
text.attr('body/rx', 0);//圆角
text.attr('label/text', '标题');//文字内容
text.attr('label/fontSize', 14);//文字大小
text.attr('label/fill', '#000');//文字颜色
text.attr('label/style/opacity', 1);//文字透明度
text.attr('label/style/letterSpacing', 1);//文字字间距
text.attr('label/kerning', 50);//文字行间距
text.attr('label/fontWeight', 'bold');//文字粗细
text.attr('label/fontStyle', 'Normal');//文字倾斜
text.attr('label/fontFamily', 'SimSun');//文字字体
text.attr('label/textAnchor', 'middle');//文字左中右对齐start | middle | end | inherit
text.attr('label/textVerticalAnchor', 'middle');//文字左中右对齐start | middle | end | inherit
// text.attr('rect/filter', { name: 'dropShadow', args: { dx: 0, dy: 0, blur: 0 } });//阴影

// 图片
let image = new joint.shapes.standard.Image();
image.resize(150, 100);
image.attr('root/tabindex', 8);
image.attr('root/title', 'joint.shapes.standard.Image');
image.attr('root/hierarchy', 0);//节点
image.attr('root/incident', '');//资源类型  video/Audio/text/image/none
image.attr('root/incidentData', '');//资源数据  video填写地址/Audio填写地址/text填写文字/image填写路径/none
image.attr('root/dialogColor', '');//弹出框背景颜色设置
image.attr('root/dialogWidth', 800);//弹出框宽设置
image.attr('root/dialogHeight', 600);//弹出框高设置
// image.attr('label/text', 'Image');
image.attr('image/xlinkHref', '/static/joint/img/image.svg');


// 自定义-数据
var trapezoid = new joint.shapes.standard.Path();
trapezoid.resize(80, 35);
trapezoid.attr('root/title', 'joint.shapes.standard.Path');
trapezoid.attr('body/refD', 'M386.00038000973797,201.66683400723986 L430.8003858756607,133.66682878685066 L610.000386789017,133.66682878685066 L565.2003809230944,201.66683400723986 L386.00038000973797,201.66683400723986 z');
trapezoid.attr('root/hierarchy', 0);//节点
trapezoid.attr('root/incident', '');//资源类型  video/Audio/text/image/none
trapezoid.attr('root/incidentData', '');//资源数据  video填写地址/Audio填写地址/text填写文字/none
trapezoid.attr('root/dialogColor', '');//弹出框背景颜色设置
trapezoid.attr('root/dialogWidth', 800);//弹出框宽设置
trapezoid.attr('root/dialogHeight', 600);//弹出框高设置
trapezoid.attr('body/fill', '#fff');//背景颜色
trapezoid.attr('body/fillOpacity', 1);//透明度
trapezoid.attr('body/stroke', '#000');//边框颜色
trapezoid.attr('body/strokeWidth', 2);//边框大小
trapezoid.attr('body/strokeDasharray', '1,0');//边框样式
trapezoid.attr('label/text', '');//文字内容
trapezoid.attr('label/fontSize', 14);//文字大小
trapezoid.attr('label/fill', '#000');//文字颜色
trapezoid.attr('label/fontWeight', 'Normal');//文字粗细
trapezoid.attr('label/fontStyle', 'Normal');//文字倾斜
trapezoid.attr('label/fontFamily', 'SimSun');//文字字体
trapezoid.attr('label/style/opacity', 1);//文字透明度
trapezoid.attr('label/style/letterSpacing', 1);//文字字间距
trapezoid.attr('label/textAnchor', 'middle');//文字左中右对齐start | middle | end | inherit
trapezoid.attr('label/textVerticalAnchor', 'middle');//文字左中右对齐start | middle | end | inherit
// trapezoid.attr('rect/filter', { name: 'dropShadow', args: { dx: 0, dy: 0, blur: 0 } });//阴影

// 圆形
let circle = new joint.shapes.standard.Circle();
circle.resize(100, 100);
circle.attr('root/tabindex', 2);
circle.attr('root/title', 'joint.shapes.standard.Circle');
circle.attr('root/hierarchy', 0);//节点
circle.attr('root/incident', '');//资源类型  video/Audio/text/image/none
circle.attr('root/incidentData', '');//资源数据  video填写地址/Audio填写地址/text填写文字/none
circle.attr('root/dialogColor', '');//弹出框背景颜色设置
circle.attr('root/dialogWidth', 800);//弹出框宽设置
circle.attr('root/dialogHeight', 600);//弹出框高设置
circle.attr('body/fill', '#fff');//背景颜色
circle.attr('body/fillOpacity', 1);//透明度
circle.attr('body/stroke', '#000');//边框颜色
circle.attr('body/strokeWidth',2);//边框大小
circle.attr('body/strokeDasharray', '1,0');//边框样式
circle.attr('label/text', '');//文字内容
circle.attr('label/fontSize', 14);//文字大小
circle.attr('label/fill', '#000');//文字颜色
circle.attr('label/fontWeight', 'Normal');//文字粗细
circle.attr('label/fontStyle', 'Normal');//文字倾斜
circle.attr('label/fontFamily', 'SimSun');//文字字体
circle.attr('label/style/opacity', 1);//文字透明度
circle.attr('label/style/letterSpacing', 1);//文字字间距
circle.attr('label/textAnchor', 'middle');//文字左中右对齐start | middle | end | inherit
circle.attr('label/textVerticalAnchor', 'middle');//文字左中右对齐start | middle | end | inherit
// circle.attr('rect/filter', { name: 'dropShadow', args: { dx: 0, dy: 0, blur: 0 } });//阴影



// 横线
var link = new joint.shapes.standard.Path();
link.resize(80, 80);
link.attr('root/title', 'joint.shapes.standard.Path');
link.attr('body/refD', 'M5 60 l215 0');
link.attr('root/hierarchy', 0);//节点
link.attr('root/incident', '');//资源类型  video/Audio/text/image/none
link.attr('root/incidentData', '');//资源数据  video填写地址/Audio填写地址/text填写文字/none
link.attr('root/dialogColor', '');//弹出框背景颜色设置
link.attr('root/dialogWidth', 800);//弹出框宽设置
link.attr('root/dialogHeight', 600);//弹出框高设置
link.attr('body/fill', '#fff');//背景颜色
link.attr('body/fillOpacity', 1);//透明度
link.attr('body/stroke', '#000');//边框颜色
link.attr('body/strokeWidth', 2);//边框大小
link.attr('body/strokeDasharray', '1,0');//边框样式
link.attr('label/text', '');//文字内容
link.attr('label/fontSize', 14);//文字大小
link.attr('label/fill', '#000');//文字颜色
link.attr('label/fontWeight', 'Normal');//文字粗细
link.attr('label/fontStyle', 'Normal');//文字倾斜
link.attr('label/fontFamily', 'SimSun');//文字字体
link.attr('label/style/opacity', 1);//文字透明度
link.attr('label/style/letterSpacing', 1);//文字字间距
link.attr('label/textAnchor', 'middle');//文字左中右对齐start | middle | end | inherit
link.attr('label/textVerticalAnchor', 'middle');//文字左中右对齐start | middle | end | inherit


const Items = [
  rectangle,
  RoundTheWaist,
  polygon,
  multilateralRectangle,
  flutter,
  polygonYes,
  text,
  image,
  trapezoid,
  circle,
  // link
];

export default Items;